libutil: Delete some unused error handling APIs
authorColin Walters <walters@verbum.org>
Wed, 29 Mar 2017 14:24:35 +0000 (10:24 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 30 Mar 2017 13:14:43 +0000 (13:14 +0000)
The first one is better as `err`, the second might as well just call `err` too.

Closes: #767
Approved by: jlebon

src/libotutil/ot-unix-utils.c
src/libotutil/ot-unix-utils.h

index 4f659a271fae0203c509c00c654897a7640d91de..46dd346e3c7ca1dc42f2b03ad8c56f937fb796c0 100644 (file)
@@ -121,17 +121,3 @@ ot_util_path_split_validate (const char *path,
  out:
   return ret;
 }
-
-void
-ot_util_fatal_literal (const char *msg)
-{
-  g_printerr ("%s\n", msg);
-  exit (EXIT_FAILURE);
-}
-
-void
-ot_util_fatal_gerror (GError *error)
-{
-  g_assert (error != NULL);
-  ot_util_fatal_literal (error->message);
-}
index 0547a54e9b93c08006abf986e5181dce2152b4c0..817e6fd3ffd53dbac2dd21a123d5a47a987145a2 100644 (file)
 
 G_BEGIN_DECLS
 
-void ot_util_fatal_literal (const char *msg) G_GNUC_NORETURN;
-
-void ot_util_fatal_gerror (GError *error) G_GNUC_NORETURN;
-
 gboolean ot_util_filename_validate (const char *name, GError **error);
 
 gboolean ot_util_path_split_validate (const char *path, GPtrArray **out_components, GError **error);